import numpy as np


for x in range(10):
	data=np.loadtxt("lables/saved_knn_lable_%d_dim_30_topn_10.txt" % x)
	data1=data.reshape(1,data.shape[0])
	for i in range(10):
		data2=np.where(data1==i)
		print("the persent %d is %.2f" % (i,data2[0].size*1.0/data.size*100))
	print("----------------finished-%d-------------" % x)